package graphicswithsomebackup;
import javax.swing.*;
/**
 *
 * @author Martin Wilhelmsson
 */
public class GameFrame extends JFrame {

    // --------- Primitive types -------------
    private int frameWidth = 800;
    private int frameHeight = 700;
    //.........................................

    public GameFrame() {
       GamePanel panel = new GamePanel(frameWidth, frameHeight); //
       add( panel );
       setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE);
       setSize(frameWidth, frameHeight);
       setVisible( true );
       setAlwaysOnTop(false); //awlays on top all other windows if set to "true"
       
    }
}
